{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport _slicedToArray from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigConsumer } from '../config-provider';\nimport defaultRenderEmpty from '../config-provider/defaultRenderEmpty';\nimport { FormItemInputContext } from '../form/context';\nimport LocaleReceiver from '../locale/LocaleReceiver';\nimport defaultLocale from '../locale/en_US';\nimport { getMergedStatus, getStatusClassNames } from '../_util/statusUtils';\nimport { groupKeysMap, groupDisabledKeysMap } from '../_util/transKeys';\nimport warning from '../_util/warning';\nimport List from './list';\nimport Operation from './operation';\nimport Search from './search';\nimport useStyle from './style';\nvar TransferFC = function TransferFC(props) {\n  var prefixCls = props.prefixCls;\n  var _useStyle = useStyle(prefixCls),\n    _useStyle2 = _slicedToArray(_useStyle, 2),\n    wrapSSR = _useStyle2[0],\n    hashId = _useStyle2[1];\n  return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n    className: classNames(props.className, hashId),\n    style: props.style\n  }, props.children));\n};\nvar Transfer = /*#__PURE__*/function (_React$Component) {\n  _inherits(Transfer, _React$Component);\n  var _super = _createSuper(Transfer);\n  function Transfer(props) {\n    var _this;\n    _classCallCheck(this, Transfer);\n    _this = _super.call(this, props);\n    _this.separatedDataSource = null;\n    _this.setStateKeys = function (direction, keys) {\n      if (direction === 'left') {\n        _this.setState(function (_ref) {\n          var sourceSelectedKeys = _ref.sourceSelectedKeys;\n          return {\n            sourceSelectedKeys: typeof keys === 'function' ? keys(sourceSelectedKeys || []) : keys\n          };\n        });\n      } else {\n        _this.setState(function (_ref2) {\n          var targetSelectedKeys = _ref2.targetSelectedKeys;\n          return {\n            targetSelectedKeys: typeof keys === 'function' ? keys(targetSelectedKeys || []) : keys\n          };\n        });\n      }\n    };\n    _this.getLocale = function (transferLocale, renderEmpty) {\n      var _this$props$locale = _this.props.locale,\n        locale = _this$props$locale === void 0 ? {} : _this$props$locale;\n      return Object.assign(Object.assign(Object.assign({}, transferLocale), {\n        notFoundContent: renderEmpty('Transfer')\n      }), locale);\n    };\n    _this.moveTo = function (direction) {\n      var _this$props = _this.props,\n        _this$props$targetKey = _this$props.targetKeys,\n        targetKeys = _this$props$targetKey === void 0 ? [] : _this$props$targetKey,\n        _this$props$dataSourc = _this$props.dataSource,\n        dataSource = _this$props$dataSourc === void 0 ? [] : _this$props$dataSourc,\n        onChange = _this$props.onChange;\n      var _this$state = _this.state,\n        sourceSelectedKeys = _this$state.sourceSelectedKeys,\n        targetSelectedKeys = _this$state.targetSelectedKeys;\n      var moveKeys = direction === 'right' ? sourceSelectedKeys : targetSelectedKeys;\n      var dataSourceDisabledKeysMap = groupDisabledKeysMap(dataSource);\n      // filter the disabled options\n      var newMoveKeys = moveKeys.filter(function (key) {\n        return !dataSourceDisabledKeysMap.has(key);\n      });\n      var newMoveKeysMap = groupKeysMap(newMoveKeys);\n      // move items to target box\n      var newTargetKeys = direction === 'right' ? newMoveKeys.concat(targetKeys) : targetKeys.filter(function (targetKey) {\n        return !newMoveKeysMap.has(targetKey);\n      });\n      // empty checked keys\n      var oppositeDirection = direction === 'right' ? 'left' : 'right';\n      _this.setStateKeys(oppositeDirection, []);\n      _this.handleSelectChange(oppositeDirection, []);\n      onChange === null || onChange === void 0 ? void 0 : onChange(newTargetKeys, direction, newMoveKeys);\n    };\n    _this.moveToLeft = function () {\n      return _this.moveTo('left');\n    };\n    _this.moveToRight = function () {\n      return _this.moveTo('right');\n    };\n    _this.onItemSelectAll = function (direction, selectedKeys, checkAll) {\n      _this.setStateKeys(direction, function (prevKeys) {\n        var mergedCheckedKeys = [];\n        if (checkAll) {\n          // Merge current keys with origin key\n          mergedCheckedKeys = Array.from(new Set([].concat(_toConsumableArray(prevKeys), _toConsumableArray(selectedKeys))));\n        } else {\n          var selectedKeysMap = groupKeysMap(selectedKeys);\n          // Remove current keys from origin keys\n          mergedCheckedKeys = prevKeys.filter(function (key) {\n            return !selectedKeysMap.has(key);\n          });\n        }\n        _this.handleSelectChange(direction, mergedCheckedKeys);\n        return mergedCheckedKeys;\n      });\n    };\n    _this.onLeftItemSelectAll = function (selectedKeys, checkAll) {\n      return _this.onItemSelectAll('left', selectedKeys, checkAll);\n    };\n    _this.onRightItemSelectAll = function (selectedKeys, checkAll) {\n      return _this.onItemSelectAll('right', selectedKeys, checkAll);\n    };\n    _this.handleFilter = function (direction, e) {\n      var onSearch = _this.props.onSearch;\n      var value = e.target.value;\n      onSearch === null || onSearch === void 0 ? void 0 : onSearch(direction, value);\n    };\n    _this.handleLeftFilter = function (e) {\n      return _this.handleFilter('left', e);\n    };\n    _this.handleRightFilter = function (e) {\n      return _this.handleFilter('right', e);\n    };\n    _this.handleClear = function (direction) {\n      var onSearch = _this.props.onSearch;\n      onSearch === null || onSearch === void 0 ? void 0 : onSearch(direction, '');\n    };\n    _this.handleLeftClear = function () {\n      return _this.handleClear('left');\n    };\n    _this.handleRightClear = function () {\n      return _this.handleClear('right');\n    };\n    _this.onItemSelect = function (direction, selectedKey, checked) {\n      var _this$state2 = _this.state,\n        sourceSelectedKeys = _this$state2.sourceSelectedKeys,\n        targetSelectedKeys = _this$state2.targetSelectedKeys;\n      var holder = direction === 'left' ? _toConsumableArray(sourceSelectedKeys) : _toConsumableArray(targetSelectedKeys);\n      var index = holder.indexOf(selectedKey);\n      if (index > -1) {\n        holder.splice(index, 1);\n      }\n      if (checked) {\n        holder.push(selectedKey);\n      }\n      _this.handleSelectChange(direction, holder);\n      if (!_this.props.selectedKeys) {\n        _this.setStateKeys(direction, holder);\n      }\n    };\n    _this.onLeftItemSelect = function (selectedKey, checked) {\n      return _this.onItemSelect('left', selectedKey, checked);\n    };\n    _this.onRightItemSelect = function (selectedKey, checked) {\n      return _this.onItemSelect('right', selectedKey, checked);\n    };\n    _this.onRightItemRemove = function (selectedKeys) {\n      var _this$props2 = _this.props,\n        _this$props2$targetKe = _this$props2.targetKeys,\n        targetKeys = _this$props2$targetKe === void 0 ? [] : _this$props2$targetKe,\n        onChange = _this$props2.onChange;\n      _this.setStateKeys('right', []);\n      onChange === null || onChange === void 0 ? void 0 : onChange(targetKeys.filter(function (key) {\n        return !selectedKeys.includes(key);\n      }), 'left', _toConsumableArray(selectedKeys));\n    };\n    _this.handleScroll = function (direction, e) {\n      var onScroll = _this.props.onScroll;\n      onScroll === null || onScroll === void 0 ? void 0 : onScroll(direction, e);\n    };\n    _this.handleLeftScroll = function (e) {\n      return _this.handleScroll('left', e);\n    };\n    _this.handleRightScroll = function (e) {\n      return _this.handleScroll('right', e);\n    };\n    // eslint-disable-next-line class-methods-use-this\n    _this.handleListStyle = function (listStyle, direction) {\n      if (typeof listStyle === 'function') {\n        return listStyle({\n          direction: direction\n        });\n      }\n      return listStyle;\n    };\n    var _props$selectedKeys = props.selectedKeys,\n      selectedKeys = _props$selectedKeys === void 0 ? [] : _props$selectedKeys,\n      _props$targetKeys = props.targetKeys,\n      targetKeys = _props$targetKeys === void 0 ? [] : _props$targetKeys;\n    _this.state = {\n      sourceSelectedKeys: selectedKeys.filter(function (key) {\n        return !targetKeys.includes(key);\n      }),\n      targetSelectedKeys: selectedKeys.filter(function (key) {\n        return targetKeys.includes(key);\n      })\n    };\n    return _this;\n  }\n  _createClass(Transfer, [{\n    key: \"getTitles\",\n    value: function getTitles(transferLocale) {\n      var _a, _b;\n      return (_b = (_a = this.props.titles) !== null && _a !== void 0 ? _a : transferLocale.titles) !== null && _b !== void 0 ? _b : [];\n    }\n  }, {\n    key: \"handleSelectChange\",\n    value: function handleSelectChange(direction, holder) {\n      var _this$state3 = this.state,\n        sourceSelectedKeys = _this$state3.sourceSelectedKeys,\n        targetSelectedKeys = _this$state3.targetSelectedKeys;\n      var onSelectChange = this.props.onSelectChange;\n      if (!onSelectChange) {\n        return;\n      }\n      if (direction === 'left') {\n        onSelectChange(holder, targetSelectedKeys);\n      } else {\n        onSelectChange(sourceSelectedKeys, holder);\n      }\n    }\n  }, {\n    key: \"separateDataSource\",\n    value: function separateDataSource() {\n      var _this$props3 = this.props,\n        _this$props3$dataSour = _this$props3.dataSource,\n        dataSource = _this$props3$dataSour === void 0 ? [] : _this$props3$dataSour,\n        rowKey = _this$props3.rowKey,\n        _this$props3$targetKe = _this$props3.targetKeys,\n        targetKeys = _this$props3$targetKe === void 0 ? [] : _this$props3$targetKe;\n      var leftDataSource = [];\n      var rightDataSource = new Array(targetKeys.length);\n      var targetKeysMap = groupKeysMap(targetKeys);\n      dataSource.forEach(function (record) {\n        if (rowKey) {\n          record = Object.assign(Object.assign({}, record), {\n            key: rowKey(record)\n          });\n        }\n        // rightDataSource should be ordered by targetKeys\n        // leftDataSource should be ordered by dataSource\n        if (targetKeysMap.has(record.key)) {\n          rightDataSource[targetKeysMap.get(record.key)] = record;\n        } else {\n          leftDataSource.push(record);\n        }\n      });\n      return {\n        leftDataSource: leftDataSource,\n        rightDataSource: rightDataSource\n      };\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this2 = this;\n      return /*#__PURE__*/React.createElement(LocaleReceiver, {\n        componentName: \"Transfer\",\n        defaultLocale: defaultLocale.Transfer\n      }, function (contextLocale) {\n        return /*#__PURE__*/React.createElement(ConfigConsumer, null, function (_ref3) {\n          var getPrefixCls = _ref3.getPrefixCls,\n            renderEmpty = _ref3.renderEmpty,\n            direction = _ref3.direction;\n          return /*#__PURE__*/React.createElement(FormItemInputContext.Consumer, null, function (_ref4) {\n            var _classNames;\n            var hasFeedback = _ref4.hasFeedback,\n              contextStatus = _ref4.status;\n            var _this2$props = _this2.props,\n              customizePrefixCls = _this2$props.prefixCls,\n              className = _this2$props.className,\n              disabled = _this2$props.disabled,\n              _this2$props$operatio = _this2$props.operations,\n              operations = _this2$props$operatio === void 0 ? [] : _this2$props$operatio,\n              _this2$props$showSear = _this2$props.showSearch,\n              showSearch = _this2$props$showSear === void 0 ? false : _this2$props$showSear,\n              footer = _this2$props.footer,\n              style = _this2$props.style,\n              _this2$props$listStyl = _this2$props.listStyle,\n              listStyle = _this2$props$listStyl === void 0 ? {} : _this2$props$listStyl,\n              operationStyle = _this2$props.operationStyle,\n              filterOption = _this2$props.filterOption,\n              render = _this2$props.render,\n              children = _this2$props.children,\n              showSelectAll = _this2$props.showSelectAll,\n              oneWay = _this2$props.oneWay,\n              pagination = _this2$props.pagination,\n              customStatus = _this2$props.status;\n            var prefixCls = getPrefixCls('transfer', customizePrefixCls);\n            var locale = _this2.getLocale(contextLocale, renderEmpty || defaultRenderEmpty);\n            var _this2$state = _this2.state,\n              sourceSelectedKeys = _this2$state.sourceSelectedKeys,\n              targetSelectedKeys = _this2$state.targetSelectedKeys;\n            var mergedStatus = getMergedStatus(contextStatus, customStatus);\n            var mergedPagination = !children && pagination;\n            var _this2$separateDataSo = _this2.separateDataSource(),\n              leftDataSource = _this2$separateDataSo.leftDataSource,\n              rightDataSource = _this2$separateDataSo.rightDataSource;\n            var leftActive = targetSelectedKeys.length > 0;\n            var rightActive = sourceSelectedKeys.length > 0;\n            var cls = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-disabled\"), disabled), _defineProperty(_classNames, \"\".concat(prefixCls, \"-customize-list\"), !!children), _defineProperty(_classNames, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), _classNames), getStatusClassNames(prefixCls, mergedStatus, hasFeedback), className);\n            var titles = _this2.getTitles(locale);\n            var selectAllLabels = _this2.props.selectAllLabels || [];\n            return /*#__PURE__*/React.createElement(TransferFC, {\n              prefixCls: prefixCls,\n              className: cls,\n              style: style\n            }, /*#__PURE__*/React.createElement(List, Object.assign({\n              prefixCls: \"\".concat(prefixCls, \"-list\"),\n              titleText: titles === null || titles === void 0 ? void 0 : titles[0],\n              dataSource: leftDataSource,\n              filterOption: filterOption,\n              style: _this2.handleListStyle(listStyle, 'left'),\n              checkedKeys: sourceSelectedKeys,\n              handleFilter: _this2.handleLeftFilter,\n              handleClear: _this2.handleLeftClear,\n              onItemSelect: _this2.onLeftItemSelect,\n              onItemSelectAll: _this2.onLeftItemSelectAll,\n              render: render,\n              showSearch: showSearch,\n              renderList: children,\n              footer: footer,\n              onScroll: _this2.handleLeftScroll,\n              disabled: disabled,\n              direction: direction === 'rtl' ? 'right' : 'left',\n              showSelectAll: showSelectAll,\n              selectAllLabel: selectAllLabels[0],\n              pagination: mergedPagination\n            }, locale)), /*#__PURE__*/React.createElement(Operation, {\n              className: \"\".concat(prefixCls, \"-operation\"),\n              rightActive: rightActive,\n              rightArrowText: operations[0],\n              moveToRight: _this2.moveToRight,\n              leftActive: leftActive,\n              leftArrowText: operations[1],\n              moveToLeft: _this2.moveToLeft,\n              style: operationStyle,\n              disabled: disabled,\n              direction: direction,\n              oneWay: oneWay\n            }), /*#__PURE__*/React.createElement(List, Object.assign({\n              prefixCls: \"\".concat(prefixCls, \"-list\"),\n              titleText: titles === null || titles === void 0 ? void 0 : titles[1],\n              dataSource: rightDataSource,\n              filterOption: filterOption,\n              style: _this2.handleListStyle(listStyle, 'right'),\n              checkedKeys: targetSelectedKeys,\n              handleFilter: _this2.handleRightFilter,\n              handleClear: _this2.handleRightClear,\n              onItemSelect: _this2.onRightItemSelect,\n              onItemSelectAll: _this2.onRightItemSelectAll,\n              onItemRemove: _this2.onRightItemRemove,\n              render: render,\n              showSearch: showSearch,\n              renderList: children,\n              footer: footer,\n              onScroll: _this2.handleRightScroll,\n              disabled: disabled,\n              direction: direction === 'rtl' ? 'left' : 'right',\n              showSelectAll: showSelectAll,\n              selectAllLabel: selectAllLabels[1],\n              showRemove: oneWay,\n              pagination: mergedPagination\n            }, locale)));\n          });\n        });\n      });\n    }\n  }], [{\n    key: \"getDerivedStateFromProps\",\n    value: function getDerivedStateFromProps(_ref5) {\n      var selectedKeys = _ref5.selectedKeys,\n        targetKeys = _ref5.targetKeys,\n        pagination = _ref5.pagination,\n        children = _ref5.children;\n      if (selectedKeys) {\n        var mergedTargetKeys = targetKeys || [];\n        return {\n          sourceSelectedKeys: selectedKeys.filter(function (key) {\n            return !mergedTargetKeys.includes(key);\n          }),\n          targetSelectedKeys: selectedKeys.filter(function (key) {\n            return mergedTargetKeys.includes(key);\n          })\n        };\n      }\n      process.env.NODE_ENV !== \"production\" ? warning(!pagination || !children, 'Transfer', '`pagination` not support customize render list.') : void 0;\n      return null;\n    }\n  }]);\n  return Transfer;\n}(React.Component); // For high-level customized Transfer @dqaria\nTransfer.List = List;\nTransfer.Operation = Operation;\nTransfer.Search = Search;\nexport default Transfer;","map":{"version":3,"names":["_toConsumableArray","_classCallCheck","_createClass","_inherits","_createSuper","classNames","React","ConfigConsumer","defaultRenderEmpty","FormItemInputContext","LocaleReceiver","defaultLocale","getMergedStatus","getStatusClassNames","groupKeysMap","groupDisabledKeysMap","warning","List","Operation","Search","useStyle","TransferFC","props","prefixCls","wrapSSR","hashId","createElement","className","style","children","Transfer","_React$Component","_super","_this","call","separatedDataSource","setStateKeys","direction","keys","setState","_ref","sourceSelectedKeys","_ref2","targetSelectedKeys","getLocale","transferLocale","renderEmpty","locale","Object","assign","notFoundContent","moveTo","targetKeys","dataSource","onChange","state","moveKeys","dataSourceDisabledKeysMap","newMoveKeys","filter","key","has","newMoveKeysMap","newTargetKeys","concat","targetKey","oppositeDirection","handleSelectChange","moveToLeft","moveToRight","onItemSelectAll","selectedKeys","checkAll","prevKeys","mergedCheckedKeys","Array","from","Set","selectedKeysMap","onLeftItemSelectAll","onRightItemSelectAll","handleFilter","e","onSearch","value","target","handleLeftFilter","handleRightFilter","handleClear","handleLeftClear","handleRightClear","onItemSelect","selectedKey","checked","holder","index","indexOf","splice","push","onLeftItemSelect","onRightItemSelect","onRightItemRemove","includes","handleScroll","onScroll","handleLeftScroll","handleRightScroll","handleListStyle","listStyle","getTitles","_a","_b","titles","onSelectChange","separateDataSource","rowKey","leftDataSource","rightDataSource","length","targetKeysMap","forEach","record","get","render","componentName","contextLocale","_ref3","getPrefixCls","Consumer","_ref4","hasFeedback","contextStatus","status","customizePrefixCls","disabled","operations","showSearch","footer","operationStyle","filterOption","showSelectAll","oneWay","pagination","customStatus","mergedStatus","mergedPagination","leftActive","rightActive","cls","selectAllLabels","titleText","checkedKeys","renderList","selectAllLabel","rightArrowText","leftArrowText","onItemRemove","showRemove","getDerivedStateFromProps","_ref5","mergedTargetKeys","process","env","NODE_ENV","Component"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/transfer/index.js"],"sourcesContent":["import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigConsumer } from '../config-provider';\nimport defaultRenderEmpty from '../config-provider/defaultRenderEmpty';\nimport { FormItemInputContext } from '../form/context';\nimport LocaleReceiver from '../locale/LocaleReceiver';\nimport defaultLocale from '../locale/en_US';\nimport { getMergedStatus, getStatusClassNames } from '../_util/statusUtils';\nimport { groupKeysMap, groupDisabledKeysMap } from '../_util/transKeys';\nimport warning from '../_util/warning';\nimport List from './list';\nimport Operation from './operation';\nimport Search from './search';\nimport useStyle from './style';\nconst TransferFC = props => {\n  const {\n    prefixCls\n  } = props;\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n    className: classNames(props.className, hashId),\n    style: props.style\n  }, props.children));\n};\nlet Transfer = /*#__PURE__*/function (_React$Component) {\n  _inherits(Transfer, _React$Component);\n  var _super = _createSuper(Transfer);\n  function Transfer(props) {\n    var _this;\n    _classCallCheck(this, Transfer);\n    _this = _super.call(this, props);\n    _this.separatedDataSource = null;\n    _this.setStateKeys = (direction, keys) => {\n      if (direction === 'left') {\n        _this.setState(_ref => {\n          let {\n            sourceSelectedKeys\n          } = _ref;\n          return {\n            sourceSelectedKeys: typeof keys === 'function' ? keys(sourceSelectedKeys || []) : keys\n          };\n        });\n      } else {\n        _this.setState(_ref2 => {\n          let {\n            targetSelectedKeys\n          } = _ref2;\n          return {\n            targetSelectedKeys: typeof keys === 'function' ? keys(targetSelectedKeys || []) : keys\n          };\n        });\n      }\n    };\n    _this.getLocale = (transferLocale, renderEmpty) => {\n      const {\n        locale = {}\n      } = _this.props;\n      return Object.assign(Object.assign(Object.assign({}, transferLocale), {\n        notFoundContent: renderEmpty('Transfer')\n      }), locale);\n    };\n    _this.moveTo = direction => {\n      const {\n        targetKeys = [],\n        dataSource = [],\n        onChange\n      } = _this.props;\n      const {\n        sourceSelectedKeys,\n        targetSelectedKeys\n      } = _this.state;\n      const moveKeys = direction === 'right' ? sourceSelectedKeys : targetSelectedKeys;\n      const dataSourceDisabledKeysMap = groupDisabledKeysMap(dataSource);\n      // filter the disabled options\n      const newMoveKeys = moveKeys.filter(key => !dataSourceDisabledKeysMap.has(key));\n      const newMoveKeysMap = groupKeysMap(newMoveKeys);\n      // move items to target box\n      const newTargetKeys = direction === 'right' ? newMoveKeys.concat(targetKeys) : targetKeys.filter(targetKey => !newMoveKeysMap.has(targetKey));\n      // empty checked keys\n      const oppositeDirection = direction === 'right' ? 'left' : 'right';\n      _this.setStateKeys(oppositeDirection, []);\n      _this.handleSelectChange(oppositeDirection, []);\n      onChange === null || onChange === void 0 ? void 0 : onChange(newTargetKeys, direction, newMoveKeys);\n    };\n    _this.moveToLeft = () => _this.moveTo('left');\n    _this.moveToRight = () => _this.moveTo('right');\n    _this.onItemSelectAll = (direction, selectedKeys, checkAll) => {\n      _this.setStateKeys(direction, prevKeys => {\n        let mergedCheckedKeys = [];\n        if (checkAll) {\n          // Merge current keys with origin key\n          mergedCheckedKeys = Array.from(new Set([].concat(_toConsumableArray(prevKeys), _toConsumableArray(selectedKeys))));\n        } else {\n          const selectedKeysMap = groupKeysMap(selectedKeys);\n          // Remove current keys from origin keys\n          mergedCheckedKeys = prevKeys.filter(key => !selectedKeysMap.has(key));\n        }\n        _this.handleSelectChange(direction, mergedCheckedKeys);\n        return mergedCheckedKeys;\n      });\n    };\n    _this.onLeftItemSelectAll = (selectedKeys, checkAll) => _this.onItemSelectAll('left', selectedKeys, checkAll);\n    _this.onRightItemSelectAll = (selectedKeys, checkAll) => _this.onItemSelectAll('right', selectedKeys, checkAll);\n    _this.handleFilter = (direction, e) => {\n      const {\n        onSearch\n      } = _this.props;\n      const {\n        value\n      } = e.target;\n      onSearch === null || onSearch === void 0 ? void 0 : onSearch(direction, value);\n    };\n    _this.handleLeftFilter = e => _this.handleFilter('left', e);\n    _this.handleRightFilter = e => _this.handleFilter('right', e);\n    _this.handleClear = direction => {\n      const {\n        onSearch\n      } = _this.props;\n      onSearch === null || onSearch === void 0 ? void 0 : onSearch(direction, '');\n    };\n    _this.handleLeftClear = () => _this.handleClear('left');\n    _this.handleRightClear = () => _this.handleClear('right');\n    _this.onItemSelect = (direction, selectedKey, checked) => {\n      const {\n        sourceSelectedKeys,\n        targetSelectedKeys\n      } = _this.state;\n      const holder = direction === 'left' ? _toConsumableArray(sourceSelectedKeys) : _toConsumableArray(targetSelectedKeys);\n      const index = holder.indexOf(selectedKey);\n      if (index > -1) {\n        holder.splice(index, 1);\n      }\n      if (checked) {\n        holder.push(selectedKey);\n      }\n      _this.handleSelectChange(direction, holder);\n      if (!_this.props.selectedKeys) {\n        _this.setStateKeys(direction, holder);\n      }\n    };\n    _this.onLeftItemSelect = (selectedKey, checked) => _this.onItemSelect('left', selectedKey, checked);\n    _this.onRightItemSelect = (selectedKey, checked) => _this.onItemSelect('right', selectedKey, checked);\n    _this.onRightItemRemove = selectedKeys => {\n      const {\n        targetKeys = [],\n        onChange\n      } = _this.props;\n      _this.setStateKeys('right', []);\n      onChange === null || onChange === void 0 ? void 0 : onChange(targetKeys.filter(key => !selectedKeys.includes(key)), 'left', _toConsumableArray(selectedKeys));\n    };\n    _this.handleScroll = (direction, e) => {\n      const {\n        onScroll\n      } = _this.props;\n      onScroll === null || onScroll === void 0 ? void 0 : onScroll(direction, e);\n    };\n    _this.handleLeftScroll = e => _this.handleScroll('left', e);\n    _this.handleRightScroll = e => _this.handleScroll('right', e);\n    // eslint-disable-next-line class-methods-use-this\n    _this.handleListStyle = (listStyle, direction) => {\n      if (typeof listStyle === 'function') {\n        return listStyle({\n          direction\n        });\n      }\n      return listStyle;\n    };\n    const {\n      selectedKeys = [],\n      targetKeys = []\n    } = props;\n    _this.state = {\n      sourceSelectedKeys: selectedKeys.filter(key => !targetKeys.includes(key)),\n      targetSelectedKeys: selectedKeys.filter(key => targetKeys.includes(key))\n    };\n    return _this;\n  }\n  _createClass(Transfer, [{\n    key: \"getTitles\",\n    value: function getTitles(transferLocale) {\n      var _a, _b;\n      return (_b = (_a = this.props.titles) !== null && _a !== void 0 ? _a : transferLocale.titles) !== null && _b !== void 0 ? _b : [];\n    }\n  }, {\n    key: \"handleSelectChange\",\n    value: function handleSelectChange(direction, holder) {\n      const {\n        sourceSelectedKeys,\n        targetSelectedKeys\n      } = this.state;\n      const {\n        onSelectChange\n      } = this.props;\n      if (!onSelectChange) {\n        return;\n      }\n      if (direction === 'left') {\n        onSelectChange(holder, targetSelectedKeys);\n      } else {\n        onSelectChange(sourceSelectedKeys, holder);\n      }\n    }\n  }, {\n    key: \"separateDataSource\",\n    value: function separateDataSource() {\n      const {\n        dataSource = [],\n        rowKey,\n        targetKeys = []\n      } = this.props;\n      const leftDataSource = [];\n      const rightDataSource = new Array(targetKeys.length);\n      const targetKeysMap = groupKeysMap(targetKeys);\n      dataSource.forEach(record => {\n        if (rowKey) {\n          record = Object.assign(Object.assign({}, record), {\n            key: rowKey(record)\n          });\n        }\n        // rightDataSource should be ordered by targetKeys\n        // leftDataSource should be ordered by dataSource\n        if (targetKeysMap.has(record.key)) {\n          rightDataSource[targetKeysMap.get(record.key)] = record;\n        } else {\n          leftDataSource.push(record);\n        }\n      });\n      return {\n        leftDataSource,\n        rightDataSource\n      };\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      return /*#__PURE__*/React.createElement(LocaleReceiver, {\n        componentName: \"Transfer\",\n        defaultLocale: defaultLocale.Transfer\n      }, contextLocale => /*#__PURE__*/React.createElement(ConfigConsumer, null, _ref3 => {\n        let {\n          getPrefixCls,\n          renderEmpty,\n          direction\n        } = _ref3;\n        return /*#__PURE__*/React.createElement(FormItemInputContext.Consumer, null, _ref4 => {\n          let {\n            hasFeedback,\n            status: contextStatus\n          } = _ref4;\n          const {\n            prefixCls: customizePrefixCls,\n            className,\n            disabled,\n            operations = [],\n            showSearch = false,\n            footer,\n            style,\n            listStyle = {},\n            operationStyle,\n            filterOption,\n            render,\n            children,\n            showSelectAll,\n            oneWay,\n            pagination,\n            status: customStatus\n          } = this.props;\n          const prefixCls = getPrefixCls('transfer', customizePrefixCls);\n          const locale = this.getLocale(contextLocale, renderEmpty || defaultRenderEmpty);\n          const {\n            sourceSelectedKeys,\n            targetSelectedKeys\n          } = this.state;\n          const mergedStatus = getMergedStatus(contextStatus, customStatus);\n          const mergedPagination = !children && pagination;\n          const {\n            leftDataSource,\n            rightDataSource\n          } = this.separateDataSource();\n          const leftActive = targetSelectedKeys.length > 0;\n          const rightActive = sourceSelectedKeys.length > 0;\n          const cls = classNames(prefixCls, {\n            [`${prefixCls}-disabled`]: disabled,\n            [`${prefixCls}-customize-list`]: !!children,\n            [`${prefixCls}-rtl`]: direction === 'rtl'\n          }, getStatusClassNames(prefixCls, mergedStatus, hasFeedback), className);\n          const titles = this.getTitles(locale);\n          const selectAllLabels = this.props.selectAllLabels || [];\n          return /*#__PURE__*/React.createElement(TransferFC, {\n            prefixCls: prefixCls,\n            className: cls,\n            style: style\n          }, /*#__PURE__*/React.createElement(List, Object.assign({\n            prefixCls: `${prefixCls}-list`,\n            titleText: titles === null || titles === void 0 ? void 0 : titles[0],\n            dataSource: leftDataSource,\n            filterOption: filterOption,\n            style: this.handleListStyle(listStyle, 'left'),\n            checkedKeys: sourceSelectedKeys,\n            handleFilter: this.handleLeftFilter,\n            handleClear: this.handleLeftClear,\n            onItemSelect: this.onLeftItemSelect,\n            onItemSelectAll: this.onLeftItemSelectAll,\n            render: render,\n            showSearch: showSearch,\n            renderList: children,\n            footer: footer,\n            onScroll: this.handleLeftScroll,\n            disabled: disabled,\n            direction: direction === 'rtl' ? 'right' : 'left',\n            showSelectAll: showSelectAll,\n            selectAllLabel: selectAllLabels[0],\n            pagination: mergedPagination\n          }, locale)), /*#__PURE__*/React.createElement(Operation, {\n            className: `${prefixCls}-operation`,\n            rightActive: rightActive,\n            rightArrowText: operations[0],\n            moveToRight: this.moveToRight,\n            leftActive: leftActive,\n            leftArrowText: operations[1],\n            moveToLeft: this.moveToLeft,\n            style: operationStyle,\n            disabled: disabled,\n            direction: direction,\n            oneWay: oneWay\n          }), /*#__PURE__*/React.createElement(List, Object.assign({\n            prefixCls: `${prefixCls}-list`,\n            titleText: titles === null || titles === void 0 ? void 0 : titles[1],\n            dataSource: rightDataSource,\n            filterOption: filterOption,\n            style: this.handleListStyle(listStyle, 'right'),\n            checkedKeys: targetSelectedKeys,\n            handleFilter: this.handleRightFilter,\n            handleClear: this.handleRightClear,\n            onItemSelect: this.onRightItemSelect,\n            onItemSelectAll: this.onRightItemSelectAll,\n            onItemRemove: this.onRightItemRemove,\n            render: render,\n            showSearch: showSearch,\n            renderList: children,\n            footer: footer,\n            onScroll: this.handleRightScroll,\n            disabled: disabled,\n            direction: direction === 'rtl' ? 'left' : 'right',\n            showSelectAll: showSelectAll,\n            selectAllLabel: selectAllLabels[1],\n            showRemove: oneWay,\n            pagination: mergedPagination\n          }, locale)));\n        });\n      }));\n    }\n  }], [{\n    key: \"getDerivedStateFromProps\",\n    value: function getDerivedStateFromProps(_ref5) {\n      let {\n        selectedKeys,\n        targetKeys,\n        pagination,\n        children\n      } = _ref5;\n      if (selectedKeys) {\n        const mergedTargetKeys = targetKeys || [];\n        return {\n          sourceSelectedKeys: selectedKeys.filter(key => !mergedTargetKeys.includes(key)),\n          targetSelectedKeys: selectedKeys.filter(key => mergedTargetKeys.includes(key))\n        };\n      }\n      process.env.NODE_ENV !== \"production\" ? warning(!pagination || !children, 'Transfer', '`pagination` not support customize render list.') : void 0;\n      return null;\n    }\n  }]);\n  return Transfer;\n}(React.Component); // For high-level customized Transfer @dqaria\nTransfer.List = List;\nTransfer.Operation = Operation;\nTransfer.Search = Search;\nexport default Transfer;"],"mappings":";;AAAA,OAAOA,kBAAkB,MAAM,8CAA8C;AAC7E,OAAOC,eAAe,MAAM,2CAA2C;AACvE,OAAOC,YAAY,MAAM,wCAAwC;AACjE,OAAOC,SAAS,MAAM,qCAAqC;AAC3D,OAAOC,YAAY,MAAM,wCAAwC;AACjE,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,QAAQ,oBAAoB;AACnD,OAAOC,kBAAkB,MAAM,uCAAuC;AACtE,SAASC,oBAAoB,QAAQ,iBAAiB;AACtD,OAAOC,cAAc,MAAM,0BAA0B;AACrD,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,SAASC,eAAe,EAAEC,mBAAmB,QAAQ,sBAAsB;AAC3E,SAASC,YAAY,EAAEC,oBAAoB,QAAQ,oBAAoB;AACvE,OAAOC,OAAO,MAAM,kBAAkB;AACtC,OAAOC,IAAI,MAAM,QAAQ;AACzB,OAAOC,SAAS,MAAM,aAAa;AACnC,OAAOC,MAAM,MAAM,UAAU;AAC7B,OAAOC,QAAQ,MAAM,SAAS;AAC9B,IAAMC,UAAU,GAAG,SAAbA,UAAU,CAAGC,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